export default {
  computed: {
    transform: {
      get: function () {
        let rotateValue = /\d+/.exec(this.item.style.transform)
        if (!rotateValue || rotateValue.length === 0) return 0
        return parseInt(rotateValue[0])
      },
      set: function (v) {
        this.item.style.transform = 'rotate(' + v + 'deg)'
      }
    }
  }
}
